<?php    
    
?>
<html>
	<head>

	</head>
	<body>
		<?php 
		echo $this->Html->link('Add Categoria', array('controller' => 'Categorias', 'action' => 'add'));
		?>
		<table>
			<thead class="listHeader">
				<tr>
					<td>ID</td>
					<td>Nombre</td>
					<td>Acciones</td>
				</tr>
			</thead>
	 		<?php foreach ($categorias as $categoria): ?>
			<tr>
				<td><?php echo $categoria['Categoria']['id']; ?></td>
				<td><?php echo $categoria['Categoria']['nombre']; ?></td>
				<td>
				<?php echo $this->Form->postLink(
					'Eliminar',
					array('action' => 'delete', $categoria['Categoria']['id']),
					array('confirm' => 'Desea eliminar esta categoria?'));
					?>
				<?php echo $this->Html->link('Editar', array('action' => 'edit', $categoria['Categoria']['id'] ))?>
				</td>
			</tr>
		<?php endforeach; ?>
		</table>
	</body>
</html>